/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Review.test2;

import java.io.Serializable;

/**
 *
 * @author THIEN
 */
public class Student implements Serializable{
    String rollNumber;
    String name;
    int age;

    public Student() {
    }

    public Student(String rollNumber, String name, int age) {
        this.rollNumber = rollNumber;
        this.name = name;
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public String getName() {
        return name;
    }

    public String getRollNumber() {
        return rollNumber;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setRollNumber(String rollNumber) {
        this.rollNumber = rollNumber;
    }
    @Override
    public String toString(){
        return "Roll Number: "+rollNumber+"\tName: "+name+"\tAge: "+age;
    }
}